import request from '@/utils/request'

// 查询捞客门店信息列表
export function listScooper(query) {
  return request({
    url: '/admin/scooper/pageList',
    method: 'get',
    params: query
  })
}

// 查询捞客门店信息详细
export function getScooper(id) {
  return request({
    url: '/admin/scooper/load/' + id,
    method: 'get'
  })
}

// 新增捞客门店信息
export function addScooper(data) {
  return request({
    url: '/system/scooper',
    method: 'post',
    data: data
  })
}

// 修改捞客门店信息
export function updateScooper(data) {
  return request({
    url: '/system/scooper',
    method: 'put',
    data: data
  })
}

// 删除捞客门店信息
export function delScooper(id) {
  return request({
    url: '/system/scooper/' + id,
    method: 'delete'
  })
}
